<?php if (!defined('THINK_PATH')) exit();?><html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>view</title>
</head>
<body>
    <div>
        <h1>查询</h1> 
        <hr/>
            <table border="1">
                <tr>
                    <th>id</th>
                    <th>title</th>
                    <th>description</th>
                    <th>操作</th>
                </tr>
                <?php if(is_array($rows)): foreach($rows as $key=>$row): ?><tr>
                    <td><?php echo ($row["id"]); ?></td>
                    <td><?php echo ($row["title"]); ?></td>
                    <td><?php echo ($row["description"]); ?></td>
                    <td><a href="<?php echo U('Home/Category/delDo',array('id'=>$row['id']));?>">删除</a>&nbsp;<a href="<?php echo U('Home/Category/edit',array('id'=>$row['id']));?>">编辑</a></td>
                </tr><?php endforeach; endif; ?>
            </table>
    </div>
</body>
</html>